import { get, post, put, remove } from "./index";

export function oneById(id) {
  return get("report/" + id);
}

export function page(query) {
  return get("report/page", query);
}

export function list(query) {
  return get("report/list", query);
}

export function create(data) {
  return post("report", data);
}

export function update(data) {
  return put("report", data);
}

export function deleteById(id) {
  return remove("report/" + id);
}

export default {
  oneById,
  page,
  list,
  create,
  update,
  deleteById,
};
